ia64: fix compilation error
authorKeir Fraser <keir.fraser@citrix.com>
Tue, 3 Feb 2009 14:06:51 +0000 (14:06 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Tue, 3 Feb 2009 14:06:51 +0000 (14:06 +0000)
This patch fixes the following compilation error.
Since struct page_list_head is defined in mm.h, sched.h needs mm.h.
Other circular inclusions are sorted out.

> In file included from xen/include/asm-ia64/linux-xen/asm/smp.h:50,
>                  from xen/include/linux/smp.h:5,
>                  from xen/include/asm-ia64/linux/topology.h:33,
>                  from xen/include/asm-ia64/linux-xen/linux/gfp.h:6,
>                  from xen/include/asm/mm.h:11,
>                  from xen/include/xen/mm.h:90,
>                  from viosapic.c:35:
> xen/include/xen/sched.h:174: error: field page_list has incomplete
> type
> xen/include/xen/sched.h:175: error: field xenpage_list has
> incomplete type

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
xen/drivers/passthrough/vtd/dmar.c
xen/include/asm-ia64/hardirq.h
xen/include/asm-ia64/linux-xen/asm/smp.h
xen/include/asm-ia64/mm.h
xen/include/asm-ia64/tlbflush.h
xen/include/xen/sched.h

index d334bea4fdb83bfba75802cc12a25a6ed0492065..efd197fe7516c03b0617728593476ef9c358828d 100644 (file)
@@ -21,6 +21,7 @@
 
 #include <xen/init.h>
 #include <xen/bitmap.h>
+#include <xen/errno.h>
 #include <xen/kernel.h>
 #include <xen/acpi.h>
 #include <xen/mm.h>
index b78d0c5f34d6317d0740ffb096de4c242d10be17..28c508fbb7efe9907964fc547d1a6cd3a9a5430e 100644 (file)
@@ -4,6 +4,7 @@
 #define __ARCH_IRQ_STAT        1
 #define HARDIRQ_BITS   14
 #include <linux/hardirq.h>
+#include <xen/sched.h>
 
 #define local_softirq_pending()                (local_cpu_data->softirq_pending)
 
index 048450a3ffb0239c4012efd00f025dd47093d062..e571562a88864dadcaadc5058f650fa32b3669fc 100644 (file)
@@ -47,7 +47,6 @@ ia64_get_lid (void)
 #define SMP_IPI_REDIRECTION    (1 << 1)
 
 #ifdef XEN
-#include <xen/sched.h>
 #define raw_smp_processor_id() (current->processor)
 #else
 #define raw_smp_processor_id() (current_thread_info()->cpu)
index 79e7953d104831431d2f18e92d63d49a0c740ef0..7337a707cc71d59377ee1938ac7560d992852f51 100644 (file)
@@ -13,7 +13,6 @@
 #include <xen/list.h>
 #include <xen/spinlock.h>
 #include <xen/perfc.h>
-#include <xen/sched.h>
 
 #include <asm/processor.h>
 #include <asm/atomic.h>
index 00b72235e03b66fff38c7201796608f236283065..bb9f2e3772937eb17537fd9a5d46f27f5e422f8f 100644 (file)
@@ -1,7 +1,8 @@
 #ifndef __FLUSHTLB_H__
 #define __FLUSHTLB_H__
 
-#include <xen/sched.h>
+struct vcpu;
+struct domain;
 
 /* TLB flushes can be either local (current vcpu only) or domain wide (on
    all vcpus).
index e5e30f54219c929107845824bb9f3b49ba6b3e7d..24a75552d09619c71bc12dbe4037335918b4c9b8 100644 (file)
@@ -19,6 +19,7 @@
 #include <xen/xenoprof.h>
 #include <xen/rcupdate.h>
 #include <xen/irq.h>
+#include <xen/mm.h>
 
 #ifdef CONFIG_COMPAT
 #include <compat/vcpu.h>